// 定义button的属性用到的类型

// 使用字符串字面量类型定义ButtonType和ButtonSize类型
export type ButtonType = 'primary' | 'success' | 'warning' | 'danger' | 'info'
export type ButtonSize = 'large' | 'small'
// 这个是原生的button的type属性
export type NativeType = 'button' | 'submit' | 'reset'  



export interface ButtonProps {
  type?: ButtonType;
  size?: ButtonSize;
  disabled?: boolean;
  plain?: boolean;
  round?: boolean;
  circle?: boolean;
  nativeType?: NativeType;
  autofocus?: boolean;
  icon?: string;
  loading?: boolean;
}
// 这个是button的ref类型
export interface ButtonInstance{
  ref: HTMLButtonElement;
}
